#ifndef GlyphEntry_H
#define GlyphEntry_H
#include <vector>
#include <tinyxml.h>
#include "SwfObject.h"
namespace swfstream {
class GlyphEntry: public SwfObject {
public:
	uint GlyphIndex; // UB[GlyphBits] Glyph index into current font.
	int GlyphAdvance; // SB[AdvanceBits] x advance value for glyph.
	static GlyphEntry* from_file(FILE* f, int, int);
	void print();
	static std::vector<GlyphEntry*>* list_from_file(FILE* f, int, int,
			int count);
	virtual TiXmlElement* toTiXmlElement() {
		TiXmlElement* r = new TiXmlElement("GlyphEntry");
		r->SetAttribute("GlyphIndex", GlyphIndex);
		r->SetAttribute("GlyphAdvance", GlyphAdvance);
		return r;
	}
};
}

#endif
